package com.zyndev.sanchi.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 这里应该有描述
 *
 * @author 张瑀楠
 * @version 1.0
 * @date 2018/2/6 14:12
 */
@RestController
public class IndexController {

    /**
     * User info string.
     *
     * @param id       the id
     * @param userName the user name
     * @return the string
     */
    @RequestMapping("userInfo")
    public String userInfo(@RequestParam("id")Integer id, @RequestParam("userName") String userName) {
        return null;
    }


    /**
     * Modify info string.
     *
     * @param id       the id
     * @param userName the user name
     * @param age      the age
     * @return the string
     */
    @RequestMapping({"modifyUser", "updateUser"})
    public String modifyInfo(@RequestParam("id")Integer id, @RequestParam("userName") String userName, @RequestParam("age") Integer age) {
        return null;
    }


    /**
     * Delete user string.
     *
     * @param id the id
     * @return the string
     */
    @RequestMapping("deleteUser")
    public String deleteUser(@RequestParam("id")Integer id) {
        return null;
    }

}
